<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Criar Sala</h2>

            <p:panel styleClass="container_24 clearfix " style="background: none; border: none;"> 
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000"/>
                    <p class="subtitle"> Dados Gerais</p>
                    <p:outputLabel value="Número : " styleClass="grid_3"/>
                    <p:inputText id="numeroInputText" styleClass="grid_4" 

                                 onkeypress="jQuery(this).autoNumeric({aSign:'', aSep: null, aDec: null, aPad: false} );"
                                 value="#{managerCriarSala.sala.numero}">
                        <f:convertNumber integerOnly="true" />
                    </p:inputText>
                    <div class="clear"/>
                    <p:outputLabel value="Qtd Aluno : " styleClass="grid_3"/>
                    <p:inputText id="qtdInputText" styleClass="grid_4" 

                                 onkeypress="jQuery(this).autoNumeric({aSign:'', aSep: null, aDec: null, aPad: false} );"
                                 value="#{managerCriarSala.sala.quantidadeAluno}">
                        <f:convertNumber integerOnly="true" />
                    </p:inputText>

                    <div class="clear"/>
                    <p:outputLabel value="Descrição : " styleClass="grid_3"/>
                    <p:inputTextarea id="descricaoInputText" styleClass="grid_12" value="#{managerCriarSala.sala.descricao}"/> 

                    <div class="clear"/>




                    <div class="buttonAction">

                        <p:commandButton value="Salvar" icon="ui-icon-disk" actionListener="#{managerCriarSala.salvar()}" 
                                         update="@form" styleClass="ui-priority-primary"/>
                        <p:button value="Cancelar" href="indexsala.xhtml" icon="ui-icon-close"  
                                  />

                    </div>
                </h:form>
                <script  type="text/javascript" src="media/js/autoNumeric.js"></script>
            </p:panel> 
        </ui:define>
    </ui:composition>
</html>